import { reactive, ref } from "vue";
export default reactive({
  userInfo: {
    bargeShip: "",
    createdAt: 0,
    fisherShip: "",
    id: 1,
    password: "",
    role: "jg",
    updatedAt: 0,
    username: "",
    satoken: "",
  },
  tfInfo: {
    name: "",
    engName: "",
    position: "",
    distance: "",
    time: "",
    speed: "",
    power: "",
    pressure: "",
    moveSpeed: "",
    movePower: "",
    moveDir: "",
    radius: "",
  },
  isOpen: false,
  isTl: false,
});

export const smInfo = reactive({
  activeShumo: null,
  dateShumo: null,
  liziData: [
    {
      title: "数值法",
      isShow: false,
    },
    {
      title: "粒子法",
      isShow: true,
    },
    {
      title: "箭头法",
      isShow: false,
    },
  ],
});

export const activeMenu = ref()
export const mapCenter = ref([118.5, 24.5])
// export const isChart = ref(false)

export const chartInfo = reactive({
  isChart: false,
  lat: 30,
  lng: 120
})

export const bmInfo = ref([])
export const bm = ref()
export const waveValue = ref(100)
export const tideValue = ref(800)
export const systemTitle = ref('海洋预警专题服务系统')
export const bmName = ref('')
export let smPngInfo = {
  
}

export let smRange = {
  wind :{},
  wave :{},
  current:{},
}

export const isYubaoCenter = ref(false)

// 当前是否在测距状态
export const isMeasure = ref(false)